package com.lin.missyou.repository;

import com.lin.missyou.models.Activity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface ActivityRepository extends JpaRepository<Activity,Long> {
    Activity findOneByName(String name);

    Optional<Activity> findByCouponListId(Long couponId);
}
